package com.car.account.client;

import com.car.account.client.dto.CarTypeDto;
import com.car.commons.core.model.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "car-serve",path = "/serve")
public interface ServeClient {
    //当链接对象是getmapping，当前单数据加@RequestParam
    //当链接对象是getmapping，当前对象加@springQueryMap
    //当链接对象是postmapping，当前对象加@requestBody

    /**
     * 根据车辆类型id查找
     */
    @GetMapping("/carType/ByIdType.ty")
    Result<CarTypeDto> selectCarTypeById(@RequestParam("carTypeId") Integer carTypeId)throws Exception;

}
